<?php

class Page extends Block{

	public $templateFile = "Page.tpl.html";
	public $templatePath = __DIR__ ;
	public $title="";
	public $body="";
	public $magin="0";
	public $absoluteURLPath="";
	
	public function initialize(){
		$this->absoluteURLPath = str_replace($_SERVER['DOCUMENT_ROOT'],'/',str_replace('\\','/',__DIR__));
	}
	
	public function show(){
	
		$this->body = $this->replace();
		$this->parseFromFile($this->templatePath."/".$this->templateFile);
		return $this->replace();
	} 

}
?>